| commit | 29d6a32571a65dfb78a8db4a41effd7851003ff5 | [log] [tgz] |
|---|---|---|
| author | James Farrell <jamesfarrell@google.com> | Thu May 09 20:27:15 2024 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 09 20:27:15 2024 +0000 |
| tree | 6da2edb7fec28257433f21c4bc0b564bee18aecd | |
| parent | 2dba64601b80b141215ebbfa09216eb4cfae02eb [diff] | |
| parent | a14795c28a277dec68e935f332be6fe766a43b3d [diff] |
Update Android.bp by running cargo_embargo am: 2aef472bcd am: a14795c28a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/3080406 Change-Id: Ic6503af2b715ada92b84e9617f30514145482cd4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Simple, Low-level I/O traits
This crate provides two simple traits: Read and Write. These traits mimic their counterparts in std::io, but are trimmed for simplicity and can be used in no_std and no_alloc environments. Since this crate contains only traits, inline functions and unit structs, it should be a zero-cost abstraction.
If the std feature is enabled, we provide blanket implementations for all std::io types. If the alloc feature is enabled, we provide implementations for Vec<u8>. In all cases, you get implementations for byte slices. You can, of course, implement the traits for your own types.
License: Apache-2.0